<template>
  <div class="overDetail">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="preid" align="center" label="预约编号"></el-table-column>
      <el-table-column prop="date" align="center" label="预约时间"></el-table-column>
      <el-table-column prop="name" align="center" label="姓名"></el-table-column>
      <el-table-column prop="phoneNum" align="center" label="联系方式"></el-table-column>
      <el-table-column prop="sex" align="center" label="性别"></el-table-column>
      <el-table-column prop="certNum" width="220" align="center" label="身份证"></el-table-column>
      <el-table-column prop="item" align="center" label="体检套餐"></el-table-column>
      <el-table-column prop="money" align="center" label="收费金额"></el-table-column>
      <el-table-column prop="beizhu" align="center" label="备注"></el-table-column>
    </el-table>
    <h2 style="margin-left:10px;">套餐详情</h2>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="beizhu" align="center" label="一般检查">
        <span>身高、体重、腰围、血压、脉搏</span>
      </el-table-column>
      <el-table-column prop="beizhu" align="center" label="全科检查内科">
        <span>全科检查内科</span>
      </el-table-column>
      <el-table-column prop="preid" align="center" label="颈动脉超声">
        <span>双侧颈动脉</span>
      </el-table-column>
      <el-table-column prop="date" align="center" label="心脏超声">
        <span>心脏彩超检查</span>
      </el-table-column>
      <el-table-column prop="name" align="center" label="心电图检查">
        <span>12导联心电图检查</span>
      </el-table-column>
      <el-table-column prop="phoneNum" align="center" label="动脉硬化早期测定">
        <span>自动化动脉硬化监测</span>
      </el-table-column>
      <el-table-column prop="sex" align="center" label="肺功能检查">
        <span>肺功能检查</span>
      </el-table-column>
      <el-table-column prop="certNum" width="220" align="center" label="精神压力检测">
        <span>HRV自律神经检测</span>
      </el-table-column>
      <el-table-column prop="item" align="center" label="尿敏感肾功能8项">
        <span>早期肾功能损伤检测</span>
      </el-table-column>
      <el-table-column prop="beizhu" align="center" label="凝血功能常规检查">
        <span>（PT,APTT,TT,FG）</span>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: [],
      tableData: [{}]
    };
  },
  methods: {
    //返回
    goback() {
      this.$router.push({ path: "/physical/over" });
    }
  },
  mounted() {
    var data = this.$route.params.data;
    if (data == undefined) {
      this.goback();
    } else {
      this.defaultData.push(data);
    }
  }
};
</script>
<style lang="scss" scoped>
.overDetail {
  margin-top: 55px;
}
</style>